package com.lxmes.business.mapper;

import java.util.List;
import java.util.Map;

import com.lxmes.business.domain.CcRukuDetail;

/**
 * 入库详情Mapper接口
 * 
 * @author 王超
 * @date 2022-07-03
 */
public interface CcRukuDetailMapper 
{
    /**
     * 查询入库详情
     * 
     * @param id 入库详情主键
     * @return 入库详情
     */
    public CcRukuDetail selectCcRukuDetailById(Long id);
    public  List<CcRukuDetail>  selectCcRukuDetailByDanHao(String danhao);
    /**
     * 查询入库详情列表
     * 
     * @param ccRukuDetail 入库详情
     * @return 入库详情集合
     */
    public List<CcRukuDetail> selectCcRukuDetailList(CcRukuDetail ccRukuDetail);

    /**
     * 新增入库详情
     * 
     * @param ccRukuDetail 入库详情
     * @return 结果
     */
    public int insertCcRukuDetail(CcRukuDetail ccRukuDetail);

    /**
     * 修改入库详情
     * 
     * @param ccRukuDetail 入库详情
     * @return 结果
     */
    public int updateCcRukuDetail(CcRukuDetail ccRukuDetail);

    /**
     * 删除入库详情
     * 
     * @param id 入库详情主键
     * @return 结果
     */
    public int deleteCcRukuDetailById(Long id);

    /**
     * 批量删除入库详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCcRukuDetailByIds(Long[] ids);

    public int deleteCcRukuDetailByDanhao(String danhao);

    /*入库总数量*/
    public Map<String,String> tJRukuDetail(String danhao);

}
